package org.bonorsoft.modules.wechat.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.bonorsoft.modules.wechat.entity.WxResponse;
import org.bonorsoft.modules.wechat.mapper.WxResponseMapper;
import org.bonorsoft.modules.wechat.service.IWxResponseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class WxResponseServiceImpl extends ServiceImpl<WxResponseMapper, WxResponse> implements IWxResponseService {
    @Resource
    private WxResponseMapper wxResponseMapper;

    /**
     * 通过请求id获取回复
     */
    @Override
    public List<WxResponse> getWxResponseByQqid(String qqid) {
        return wxResponseMapper.getWxResponseByQqid(qqid);
    }

    @Override
    public void removeByQqid(String qqid) {
        wxResponseMapper.removeByQqid(qqid);
    }
}
